package com.health.pojo.domain;

import lombok.Data;
import lombok.AllArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 咨询会话消息记录实体对象
 *
 * @author WUYU_MIN
 * @date 2025-04-29 23:51:18
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("consultation_messages")
public class ConsultationMessageDO {

    /**
     * 消息ID：主键，自增
     */
    @TableId(type = IdType.AUTO)
    @Schema(description = "消息ID：主键，自增")
    private Long messageId;

    /**
     * 所属会话ID
     */
    @Schema(description = "所属会话ID")
    private Integer consultationId;

    /**
     * 发送者ID
     */
    @Schema(description = "发送者ID")
    private Integer senderId;

    /**
     * 内容类型
     */
    @Schema(description = "内容类型")
    private String contentType;

    /**
     * 消息内容
     */
    @Schema(description = "消息内容")
    private String messageContent;

    /**
     * 发送时间
     */
    @Schema(description = "发送时间")
    private Date sentAt;
}
